# 基于ubuntu16.04制作一个带jdk8 wine的镜像
FROM ubuntu:16.04

# 避免一些需要用户输入的操作
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND teletype
RUN apt-get update -y

# for jdk8
ADD jdk-8u301-linux-x64.tar.gz /usr/local
ENV JAVA_HOME /usr/local/jdk1.8.0_301
ENV CLASSPATH .:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
ENV PATH $PATH:$JAVA_HOME/bin

# for Wine
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:ubuntu-wine/ppa
RUN dpkg --add-architecture i386
RUN apt-get update -y
RUN apt-get install -y wine